import '../../model/ranking_mo.dart';
import '../core/hi_net.dart';
import '../request/ranking_request.dart';

class RankingDao {
    static get(String sort,{int pageIndex=1,pageSize = 10}) async {
        RankingRequest request = RankingRequest();
        request.add("sort", sort).add("pageIndex", pageIndex).add("pageSize", pageSize);
        var result = await HiNet.getInstance().fire(request);

        return RankingMo.fromJson(result["data"]);
    }
}